package com.ymttest.database.mapping.godmember;

import com.ymttest.database.model.godmember.BizType;
import com.ymttest.database.model.godmember.BizTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface BizTypeMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @SelectProvider(type=BizTypeSqlProvider.class, method="countByExample")
    int countByExample(BizTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @DeleteProvider(type=BizTypeSqlProvider.class, method="deleteByExample")
    int deleteByExample(BizTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @Delete({
        "delete from biztype",
        "where BizType = #{bizType,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer bizType);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @Insert({
        "insert into biztype (BizType, BizName, ",
        "CreateTime, UpdateTime)",
        "values (#{bizType,jdbcType=INTEGER}, #{bizName,jdbcType=VARCHAR}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(BizType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @InsertProvider(type=BizTypeSqlProvider.class, method="insertSelective")
    int insertSelective(BizType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @SelectProvider(type=BizTypeSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="BizType", property="bizType", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="BizName", property="bizName", jdbcType=JdbcType.VARCHAR),
        @Result(column="CreateTime", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="UpdateTime", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<BizType> selectByExample(BizTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @Select({
        "select",
        "BizType, BizName, CreateTime, UpdateTime",
        "from biztype",
        "where BizType = #{bizType,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="BizType", property="bizType", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="BizName", property="bizName", jdbcType=JdbcType.VARCHAR),
        @Result(column="CreateTime", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="UpdateTime", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    BizType selectByPrimaryKey(Integer bizType);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @UpdateProvider(type=BizTypeSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BizType record, @Param("example") BizTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @UpdateProvider(type=BizTypeSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BizType record, @Param("example") BizTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @UpdateProvider(type=BizTypeSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BizType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biztype
     *
     * @mbggenerated Tue May 19 11:08:56 CST 2020
     */
    @Update({
        "update biztype",
        "set BizName = #{bizName,jdbcType=VARCHAR},",
          "CreateTime = #{createTime,jdbcType=TIMESTAMP},",
          "UpdateTime = #{updateTime,jdbcType=TIMESTAMP}",
        "where BizType = #{bizType,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(BizType record);
}